<?php
my_component_load('xl_builder' , false);
my_component_load('testing' , false);
my_component_load('paging' , false);
my_component_load('yi_rpt_jurnal', false);
$task = isset($_GET['task']) ? $_GET['task'] : "";  
$pr_yearly_income_id = isset( $_GET['pr_yearly_income_id'] ) ? $_GET['pr_yearly_income_id']:  0; 

$modulname = "Reporting _BN_ Jurnal Gaji";
if(isset($_GET['excel'])){

header("Content-Type: application/xls");;
header("Content-Disposition: attachment;filename=jurnal_gaji_".rand().".xls");
	echo list_jurnal_gaji_excel($pr_yearly_income_id);
	exit;
}else{
	$pagename = $modulname;
	load_facebox_script();	
	$view = list_jurnal_gaji($pr_yearly_income_id);
}
generate_my_web($view, $pagename );

?>